<template>
    <hr>
    <div class="action">
        <h2>money:{{ money }}</h2>
        <button @click="changeMoeny">+</button>
        <h2>轮播的数据</h2>
        <ul>
            <template v-for="item in actionStore.banners">
                <li>{{ item.title }}</li>
            </template>
        </ul>
    </div>
</template>
<script setup>
import useAction from '@/stores/action';
import { storeToRefs } from 'pinia';
const actionStore = useAction()
const { money } = storeToRefs(actionStore)
function changeMoeny() {
    // ActionStore.addMoney()
    // 传入参数
    actionStore.addMoneyNum(10)
}
actionStore.fetchActionMultidata().then(res => {
    console.log("获取fetchActionMultidata已经完成",res);
})

</script>
<style scoped lang="less"></style>